﻿using MyBookStore.Application.Model;
using MyBookStore.Domain;

namespace MyBookStore.Application
{
    public interface IUserAppService
    {
        /// <summary>
        /// 获取用户名
        /// </summary>
        /// <returns></returns>
        string GetUser();

        /// <summary>
        /// 校验用户登录
        /// </summary>
        /// <param name="no"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        Task<Users> Login(string no, string password);

        /// <summary>
        /// 校验用户登录
        /// </summary>
        /// <param name="no"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        UserDto Login2(string no, string password);
    }
}
